package com.funmi.lizip.mapper;

import com.funmi.lizip.entity.Patrol;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yeyg
 * @since 2022-11-03
 */
//@Repository
public interface PatrolMapper extends BaseMapper<Patrol> {

    @Select("select id from ec_patrol where status = `1` and id_delete = 0")
    List<Integer> getIds();

    @Select("select ranger_ids from ec_patrol where id = #{id}")
    List<Integer> getRangerIds(int id);
}
